package nc.ui.eom.failure.report;

import java.util.Observable;

import nc.ui.am.BaseReportPanelManager;
import nc.vo.pub.lang.UFBoolean;

/**
 * 
 * @author zhuhuib
 *
 */
public class ReportPanelManager extends BaseReportPanelManager {
	public void update(Observable o, Object arg) {
		
		Object graphicFlag = getBasePanel().getClientProperty("graphicFlag");
		Object queryFlag = getBasePanel().getClientProperty("queryFlag");
		if(UFBoolean.TRUE.equals(queryFlag)){ 
			updateReportPanel(o,  arg);
			getBasePanel().putClientProperty("queryFlag", UFBoolean.FALSE);
			getBasePanel().putClientProperty("graphicFlag", UFBoolean.FALSE);
			getBasePanel().putClientProperty("queryFlag2", UFBoolean.TRUE);
			return;
		} else {
			if(UFBoolean.TRUE.equals(graphicFlag)){
				return;
			}
		}
		updateReportPanel(o,  arg);
	}
}
